<template>
  <div id="app">
    <el-container>
      <el-header>
        <div class="header-title">简化版ERP/MES系统</div>
      </el-header>
      
      <el-main>
        <el-tabs v-model="activeTab" type="card">
          <el-tab-pane label="采购流程" name="purchase">
            <purchase-process />
          </el-tab-pane>
          <el-tab-pane label="生产流程" name="production">
            <production-process />
          </el-tab-pane>
          <el-tab-pane label="质检流程" name="quality">
            <quality-process />
          </el-tab-pane>
          <el-tab-pane label="设备维护" name="equipment">
            <equipment-process />
          </el-tab-pane>
        </el-tabs>
      </el-main>
      
      <el-footer>
        <div class="footer-content">
          简化版ERP/MES系统 - 专注于业务流程展示
        </div>
      </el-footer>
    </el-container>
  </div>
</template>

<script>
import PurchaseProcess from './views/PurchaseProcess.vue'
import ProductionProcess from './views/ProductionProcess.vue'
import QualityProcess from './views/QualityProcess.vue'
import EquipmentProcess from './views/EquipmentProcess.vue'

export default {
  name: 'App',
  components: {
    PurchaseProcess,
    ProductionProcess,
    QualityProcess,
    EquipmentProcess
  },
  data() {
    return {
      activeTab: 'purchase'
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  min-height: 100vh;
}

.header-title {
  font-size: 24px;
  font-weight: bold;
  color: #409EFF;
  text-align: center;
  line-height: 60px;
}

.footer-content {
  text-align: center;
  color: #909399;
  font-size: 14px;
  line-height: 60px;
}
</style>